<extend name="Public:User/base"/>
<block name="content">
    <div class="all-width my-cols-right info-back-color back-margin-padding col-sm-9 col-lg-9">
        <div class="row">
            <div class="small-search col-sm-12 col-lg-12">
                <!-- row-search start -->
                <div class="row">
                    <div class="small-search-a col-sm-4 col-lg-4 text-center">
                        <a class="collect-btn" style="color: RGB(244,166,36)" id="bingo-bag" href="#已发布">已发布</a>
                        <a class="collect-btn" id="lucky-bag" href="#未发布">未发布</a>
                    </div>
                    <div class="col-sm-4 col-lg-4"></div>
                </div>
                <!--row-search end-->
            </div>
        </div>
        <!--已发布 start-->
        <div id="bingobag">
            <!-- table star -->
            <div class="row"  style="margin-left: 30px;">
                <div class="col-sm-12 col-lg-12">
                    <div class="mypanel panel panel-default text-center" style="border: none;">
                        <table>
                            <thead>
                            <tr class="table-title">
                                <td colspan="2" style="width: 20%;">分享图片</td>
                                <td colspan="4" style="width: 70%;">文字</td>
                                <td style="width: 20%;">操作</td>
                            </tr>
                            </thead>
                            <tbody>
                            <!-- black-row start-->
                            <tr class="black-row">
                                <td colspan="7"></td>
                            </tr>
                            <!-- black-row end -->
                            <foreach name="shareInfo" item="yes">
                                <if condition="$yes.isshared eq 1">
                                <tr class="table-row">
                                    <td colspan="2">
                                        <img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50">
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50"><br>-->
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50">-->
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50"><br>-->
                                        <!--<a href="#商品名">第123321期&nbsp;&nbsp;阿婆手机11G</a><br>-->
                                    </td>
                                    <td colspan="4">
                                        <div>
                                            <p class="pull-left">&nbsp;&nbsp;{$yes['title']}</p>
                                            <p class="pull-center">{$yes['sharetext']}</p>
                                            <p class="pull-right" style="font-size: 14px;">{$yes['lotteryturn']}&nbsp;&nbsp;&nbsp;{$yes['goodsname']}</p>
                                        </div>
                                    </td>
                                    <td>
                                        <!-- Button trigger modal -->
                                        <div type="button" class="btn button-set btn-fail" onclick="window.location.href ='{:U('Home/Share/delShare?shareId='.$yes['shareid'])}' ">
                                            删除
                                        </div>
                                        <div class="btn button-set" onclick="window.location.href ='{:U('Home/Share/showOneShare','shareId='.$yes['shareid'].'&userlotterId='.$yes['userlotterid'])}' ">查看</div>
                                    </td>
                                </tr>
                                </if>
                            </foreach>
                            <tr class="black-row">
                                <td colspan="7"></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- table end -->
        </div>
        <!--已发布 end-->

        <!--未发布 start-->
        <div id="luckybag" style="display: none;">
            <!-- table star -->
            <div class="row"  style="margin-left: 30px;">
                <div class="col-sm-12 col-lg-12">
                    <div class="mypanel panel panel-default text-center" style="border: none;">
                        <table>
                            <thead>
                            <tr class="table-title">
                                <td colspan="2" style="width: 20%;">分享图片</td>
                                <td colspan="4" style="width: 70%;">文字</td>
                                <td style="width: 20%;">操作</td>
                            </tr>
                            </thead>
                            <tbody>
                            <!-- black-row start-->
                            <tr class="black-row">
                                <td colspan="7"></td>
                            </tr>
                            <!-- black-row end -->
                            <foreach name="shareInfo" item="not">
                                <if condition="$not.isshared eq 0">
                                <tr class="table-row">
                                    <td colspan="2">
                                        <img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50">
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50"><br>-->
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50">-->
                                        <!--<img src="{$Think.const.IMG_URL}/personalcenter/smart_img.png" height="50" width="50"><br>-->
                                        <!--<a href="#商品名">第123321期&nbsp;&nbsp;阿婆手机11G</a><br>-->
                                    </td>
                                    <td colspan="4">
                                        <div>
                                            <p class="pull-left">&nbsp;&nbsp;{$not['title']}</p>
                                            <p class="pull-center">{$not['sharetext']}</p>
                                            <p class="pull-right" style="font-size: 14px;">{$not['lotteryturn']}&nbsp;&nbsp;&nbsp;{$not['goodsname']}</p>
                                        </div>
                                    </td>
                                    <td>
                                        <!-- Button trigger modal -->
                                        <div class="btn button-set" onclick="window.location.href ='{:U('Home/Share/editShare','shareId='.$not['shareid'].'&userlotterId='.$not['userlotterid'])}' ">编辑</div>
                                        <div class="btn button-set" onclick="window.location.href ='{:U('Home/Share/editShare','shareId='.$not['shareid'].'&userlotterId='.$not['userlotterid'])}' ">查看</div>
                                    </td>
                                </tr>
                                </if>
                            </foreach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- table end -->
        </div>
    </div>
    <a href="javascript:scroll(0,0)">
        <div class="text-center" style="width:50px;height:50px;background-color: #ccc;font-size:40px;position: fixed;bottom: 20px;right:20px;">
            <span class="glyphicon glyphicon-chevron-up" aria-hidden="true"></span>
        </div>
    </a>

</block>